package com.eastfair.util;



/**
 * 随机数工具类，雪花算法
 * 
 * 
 *
 */
public class OrderUtil {
	/**
	 * 获取订单号
	 * @param prefix
	 * @return
	 */
	public static String getOrderNo(String prefix) {
		SnowflakeUtils snowFlakeWorker = new SnowflakeUtils(1000);
	    return prefix+String.valueOf(snowFlakeWorker.nextId());

	}
	
}
